PHP: nl2br | 您所在的位置:网站首页 › replace /n › PHP: nl2br |
nl2br
(PHP 4, PHP 5, PHP 7, PHP 8) nl2br — Inserts HTML line breaks before all newlines in a string Description nl2br(string $string, bool $use_xhtml = true): stringReturns string with or inserted before all newlines (\r\n, \n\r, \n and \r). Parametersstring The input string. use_xhtmlWhether to use XHTML compatible line breaks or not. Return ValuesReturns the altered string. Examples
Example #1 Using nl2br() |
CopyRight 2018-2019 实验室设备网 版权所有 |